const initState = {
    showMenu:true
}

const reducer = function(state=initState,action){
    switch(action.type){
        case 'showmenu':
            return {showMenu:true}
        case 'hidemenu':
            return {showMenu:false}
        default:
            return state;

    }

}

export default reducer;